package com.pantuo.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pantuo.sys.pojo.StatisticsOne;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface StatisticsOneDao extends BaseMapper<StatisticsOne> {

    //查询所有字段
    public List<Map<String, Object>> findAllFields(@Param("map1") Map<String, String> map1,
                                                   @Param("map2") Map<String, String> map2,
                                                   Integer start,
                                                   Integer length);

    public Long getTotal(@Param("map1") Map<String, String> map1);

    //统计当天总数量
   // public int findCurrentTotal(String currentDay);

    //统计当天老年人总数量
   // public int findCurrentAgedTotal(String currentDay);

    //保存中间表信息
    void insertObject(@Param("map") Map<String, Object> map);

    //根据日期统计各种类的总数量(总记录，老年人数量，需购票数量，未识别，ip更新)
    List<Map<String, Object>> findAllTypeTotal(String currentDate);

    public int findThisMonthCount(String date_s);



}
